home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
Acere (Card Game)
/
AcereÄ.sit
/
Acereƒ
/
Acere notes
< prev
next >
Wrap
Text File
|
1994-08-24
|
2KB
|
32 lines
Acere
A Work in Progress by Deirdre Saoirse-Savino (Deeny3@aol.com)
This is a card game under construction. When it grows up, I expect it will be something
like the Microsoft solitaire game "FreeCell."
I wrote it for two reasons:
1) I'd never written a card game before and I wanted to know how to do one.
2) I'd never used PowerPlant's class library and wanted a project to help me learn it.
Frankly, I found it easier to work with than Think's Class Library, though I've not spent
enough time analyzing why this might be so. I liked the Constructor, but I haven't used
Think's Visual Architect enough to give a fair comparison between the two.
Right now, this is a very rough piece. It makes Stupid Assumptions (like you have
Color Quickdraw). I've changed the way I did things several times, so there's code that
shouldn't be there. And I've rethought things I haven't changed yet (and a few I have).
However, it does deal a deck of cards (when you create a new document) and allow you to
move them according to various rules. I've never tried creating a document twice. Right now,
it doesn't support two documents, which I will fix later. It may not even support sequential documents.
The upper left panes are "WellFreeCell" class. The upper right are "WellDeck" class. The
lower eight are "WellStack" class. Each of these is derived from a "CardWell" class, a generic
class for card manipulation.
At present, dragging of cards isn't supported -- you have to click on the card you want to move,
then click on the card you want to move it onto. If the Mac beeps, you tried an illegal move.
Comments and criticisms cheerfully accepted via email. You may freely use any of these coding
ideas/fragments/concepts in any non-commercial work.